<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>考试结果</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .container {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
            text-align: center;
        }

        h1 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: #007bff;
        }

        p {
            font-size: 1.25rem;
            color: #333;
            margin-bottom: 1rem;
        }

        .result {
            font-size: 1.5rem;
            color: #28a745;
            margin-top: 1.5rem;
            font-weight: bold;
        }

        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            color: white;
            background-color: #007bff;
            border-radius: 4px;
            text-decoration: none;
            margin-top: 2rem;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background-color: #0056b3;
        }

    </style>
</head>
<body>
    <div class="container">
        <h1>考试结果</h1>
        <p>考试名称: {{ exam_name }}</p>
        <p>考试用时: {{ elapsed_time // 60 }} 分钟 {{ elapsed_time % 60 }} 秒</p>
        <div class="result">考试已成功提交！</div>
        <a href="{{ url_for('student_dashboard', username=session['username']) }}" class="btn">返回主页面</a>
    </div>
</body>
</html>
